using System.Collections.Generic;

using Xc.DataAccess.AepCoapCore.Models.Apis.Core;

namespace Xc.DataAccess.AepCoapCore.Models.Apis
{
    class Aep_product
    {
        //参数productId: 类型long, 参数不可以为空
        //  描述:产品ID
        //参数MasterKey: 类型String, 参数不可以为空
        //  描述:MasterKey
        public static string ProductGetInfo(string appKey, string appSecret, string productId, string MasterKey)
        {
            string path = "/Aep_product/dm/product/v1/product";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = new Dictionary<string, string>();
            param.Add("productId", productId);

            string version = "20180717135002";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, null, version, application, MasterKey, key, "GET");
            if (response != null)
                return response;
            return null;
        }

    }
}
